<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Managing connection's events and errors: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="getting_started.html" title="Code examples">
<link rel="prev" href="transactions.html" title="Managing transactions">
<link rel="next" href="main_example.html" title="Full example">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="getting_started.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="transactions.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="main_example.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="managing-errors"></a>Managing connection's events and errors</h2></div></div></div>
<p>
      Each <a class="link" href="GdaConnection.html" title="GdaConnection">GdaConnection</a> object maintains a list of events which occurred on the
      connection. Each event is stored as a <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent">GdaConnectionEvent</a> object, and the
      possible event <span class="emphasis"><em>kinds</em></span> are:
      </p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>GDA_CONNECTION_EVENT_NOTICE: for notices which are general purpose information</p></li>
<li class="listitem"><p>GDA_CONNECTION_EVENT_WARNING: for warnings</p></li>
<li class="listitem"><p>GDA_CONNECTION_EVENT_ERROR: for errors</p></li>
<li class="listitem"><p>GDA_CONNECTION_EVENT_COMMAND: for SQL statements which have been executed</p></li>
</ul></div>
<p>
    </p>
<p>
      The list of events for a GdaConnection can be obtained using 
      <a class="link" href="GdaConnection.html#gda-connection-get-events" title="gda_connection_get_events ()">gda_connection_get_events()</a>, the list of events can be manually cleared
      anytime using <a class="link" href="libgda-5.0-Misc-API.html#gda-connection-clear-events-list" title="gda_connection_clear_events_list ()">gda_connection_clear_events_list ()</a>, and
      is automatically cleared before any command or query is executed.
    </p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>